package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author chensheng
 * @since 2025-08-08
 */
public interface IShoppingCartService extends IService<ShoppingCart> {

    /**
     * 添加购物车
     * @param sDTO
     */
    void addShoppingCart(ShoppingCartDTO sDTO);

    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> listShoppingCart();

    /**
     * 清空购物车
     */
    void removeAll();

}
